<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script type="module">
    // es6导入外部模块(具名导出)
    import {a,fn} from "./模块export.js";
    console.log(a);
    fn();


    // es6导入外部模块(不具名导出)
    import demo from "./模块export.js";
    console.log(demo);
    demo.fn();
    console.log(demo.a);

</script>